import { nextTick, toRaw } from "vue";
import { defineStore } from "pinia";

import { Layout, apiStoreType, SelectIcon, RuleForm } from "./apiStore.d"
import md5 from "js-md5";
import { getUUIDForFDFB } from "@/utils/common";
import i18n from "@/lang/index";
import { getDefaultOption, defaultGridPanelConfig } from "@/js/table/context.js";
import * as echarts from "echarts";
import { cloneDeep } from "lodash";
// 记录记录
const { t } = i18n.global;
//   analysisStore.$reset();
// store.$patch()
// 编辑区域内容
export const useApiStore = defineStore({
    id: "useApiStore",
    state: (): apiStoreType => {
        return ({
            //调用接口loading
            apiLoading: false,
            staticConfig: {}
        }) //为了避免出错，返回的值用()包起来
    },
    getters: {},
    actions: {},
});
